package pojo;

import java.time.LocalDate;
import java.time.LocalDateTime;

public class TaskAssignment {
    private String itemID;
    private String orderCode;
    private String flowOrderCode;
    private String itemName;
    private Double itemDifficulty;
    private String workcenterName;
    private int assignedQuantity;//被分配的数量
    private Double preCycle;   //准备时间
    private Double makeCycle;  // 制造周期
    private LocalDate deadline;//截至日期
    private LocalDateTime startTime;//实际开始时间
    private LocalDateTime endTime;//实际结束时间

    public TaskAssignment(String itemID, String orderCode, String flowOrderCode, String itemName, Double itemDifficulty, String workcenterName, int assignedQuantity,Double preCycle, Double makeCycle, LocalDate deadline) {
        this.itemID = itemID;
        this.orderCode = orderCode;
        this.flowOrderCode = flowOrderCode;
        this.itemName = itemName;
        this.itemDifficulty = itemDifficulty;
        this.workcenterName = workcenterName;
        this.assignedQuantity = assignedQuantity;
        this.preCycle = preCycle;
        this.makeCycle = makeCycle;
        this.deadline = deadline;
    }

    @Override
    public String toString() {
        return " itemName "+itemName+"orderCode  "+orderCode
                +" assignedQuantity "+assignedQuantity+" deadline "+deadline+"workcenterName "+workcenterName;
    }

    public Double getPreCycle() {
        return preCycle;
    }

    public void setPreCycle(Double preCycle) {
        this.preCycle = preCycle;
    }

    public String getItemID() {
        return itemID;
    }

    public void setItemID(String itemID) {
        this.itemID = itemID;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getFlowOrderCode() {
        return flowOrderCode;
    }

    public void setFlowOrderCode(String flowOrderCode) {
        this.flowOrderCode = flowOrderCode;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Double getItemDifficulty() {
        return itemDifficulty;
    }

    public void setItemDifficulty(Double itemDifficulty) {
        this.itemDifficulty = itemDifficulty;
    }

    public String getWorkcenterName() {
        return workcenterName;
    }

    public void setWorkcenterName(String workcenterName) {
        this.workcenterName = workcenterName;
    }

    public int getAssignedQuantity() {
        return assignedQuantity;
    }

    public void setAssignedQuantity(int assignedQuantity) {
        this.assignedQuantity = assignedQuantity;
    }

    public Double getMakeCycle() {
        return makeCycle;
    }

    public void setMakeCycle(Double makeCycle) {
        this.makeCycle = makeCycle;
    }

    public LocalDate getDeadline() {
        return deadline;
    }

    public void setDeadline(LocalDate deadline) {
        this.deadline = deadline;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }
}
